<?php

declare(strict_types=1);

namespace App\Entity;

use App\Models\Company;

class CompanyEntity extends ABaseEntity
{
    /**
     * CompanyEntity constructor.
     */
    public function __construct(Company $model)
    {
        $this->model = $model;
    }

    public function getId(): int
    {
        return (int) $this->model->id;
    }

    public function setId(int $id): void
    {
        $this->model->id = $id;
    }

    public function getCityid(): int
    {
        return (int) $this->model->cityid;
    }

    public function setCityid(int $cityid): void
    {
        $this->model->cityid = $cityid;
    }

    public function getCname(): string
    {
        return (string) $this->model->cname;
    }

    public function setCname(string $cname): void
    {
        $this->model->cname = $cname;
    }

    public function getCompanyid(): int
    {
        return (int) $this->model->companyid;
    }

    public function setCompanyid(int $companyid): void
    {
        $this->model->companyid = $companyid;
    }

    public function getCreatetime(): int
    {
        return (int) $this->model->createtime;
    }

    public function setCreatetime(int $createtime): void
    {
        $this->model->createtime = $createtime;
    }

    public function getUpdatetime(): int
    {
        return (int) $this->model->updatetime;
    }

    public function setUpdatetime(int $updatetime): void
    {
        $this->model->updatetime = $updatetime;
    }
}
